export const tableOption = {
  border: true, //是否带有纵向边框
  selection: true, //行最前面的选择框
  menuAlign: "center",
  // labelWidth: 110,//设置列名称长度
  // searchLabelWidth: 110,//搜索按钮是否单独成行，并控制搜索按钮的长度
  searchIndex: 4, //筛选收缩
  searchIcon: true,
  align: "center", //对齐方式
  emptyText: '自定义暂无数据提示语',
  column: [
    {
      label: "店铺id",
      prop: "shopId",
      type: "input",
      hide: true,
      editDisabled: true,
      editDisplay: false,
      addDisplay: false,
      span: 12
    },
    {
      label: "店铺名称",
      prop: "shopName",
      type: "input",
      search: true,
      span: 12
    },
    {
      label: "店铺类型",
      prop: "shopType",
      type: "select",
      dicData: [{
        label: '自营店',
        value: 1
      }, {
        label: '普通店',
        value: 2
      }],
      search: true,
      span: 12
    },
    {
      label: "店铺状态",
      prop: "shopStatus",
      type: 'switch',
      dicData: [{
        label: '停业中',
        value: false
      }, {
        label: '营业中',
        value: true
      }],
      search: true,
      value: true,
      span: 12
    },
    {
      label: "店铺简介",
      prop: "intro",
      type: "input",
      overHidden: true,
      span: 24
    },
    {
      label: "店铺logo(可修改)",
      prop: "shopLogo",
      type: "upload",
      listType: 'picture-img',
      dataType: 'string',
      tip: '只能上传jpg/png文件,且不超过500kb',
      action: '/admin/sys-file/upload',
      propsHttp: {
        res: 'data'
      },
    },
    {
      label: "店铺移动端背景图",
      prop: "mobileBackgroundPic",
      type: "upload",
      listType: 'picture-img',
      dataType: 'string',
      tip: '只能上传jpg/png文件,且不超过500kb',
      action: '/admin/sys-file/upload',
      propsHttp: {
        res: 'data'
      },
    },
    {
      label: "营业执照",
      prop: "businessLicense",
      type: "upload",
      listType: 'picture-img',
      dataType: 'string',
      tip: '只能上传jpg/png文件,且不超过500kb',
      action: '/admin/sys-file/upload',
      propsHttp: {
        res: 'data'
      },
    },
    {
      label: "身份证正面",
      prop: "identityCardFront",
      type: "upload",
      listType: 'picture-img',
      dataType: 'string',
      tip: '只能上传jpg/png文件,且不超过500kb',
      action: '/admin/sys-file/upload',
      propsHttp: {
        res: 'data'
      },
    },
    {
      label: "身份证反面",
      prop: "identityCardLater",
      type: "upload",
      listType: 'picture-img',
      dataType: 'string',
      tip: '只能上传jpg/png文件,且不超过500kb',
      action: '/admin/sys-file/upload',
      propsHttp: {
        res: 'data'
      },
    },
    {
      label: "创建人",
      prop: "createBy",
      type: "input",
      editDisabled: true,
      editDisplay: false,
      addDisplay: false,
    },
    {
      label: "创建时间",
      prop: "createTime",
      type: "datetime",
      dateDefault: true,
      format: 'yyyy-MM-dd HH:mm:ss',
      valueFormat: 'yyyy-MM-dd HH:mm:ss',
      editDisabled: true,
      editDisplay: false,
      addDisplay: false,
    },
  ]
}
